import socket
me = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
me.connect(('127.0.0.1', 8001))
str = input("请输入要输入的内容：")
me.sendall(str.encode())
data = me.recv(1024)
print(data.decode())
me.close()